package com.uas;

import com.uas.model.*;



/**
 * created by shicr on 2017/11/19
 **/
public class Application {
    public static void main(String[] args){
        try {
            ApplicationContext context=new ApplicationContext("src/main/resources/applicationContext.xml");
            Animal animal=(Animal)context.getBean("animal");
            if(animal !=null){
                animal.say();
            }else{
                System.out.println("函数对象为空");
            }
            Book book=(Book)context.getBean("book");
            book.say();

            AnnotionParse a=new AnnotionParse();
            a.searchClass();


        } catch (Exception e) {
            e.printStackTrace();
        }

    }

}
